package com.leo.train.batch.controller;

import com.leo.train.batch.feign.BusinessFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class BatchTestController {
    @Autowired
    BusinessFeign businessFeign;

    @GetMapping("/hello")
    public String test() {
        String hello = businessFeign.hello1();
        log.info("调用业务服务成功，返回结果：{}", hello);
        return "hello batch" + hello;
    }

}
